<template>
  <div>
    <div class="Unlockagain">
      <img src="../../assets/suo.png" alt="">
      <p class="Unlockagain-p">额~门锁纹丝不动</p>
      <div class="Unlockagain-button" @click="onUnlock">再次开锁</div>
      <div class="Unlockagain-div">或者您也可以：<span @click="onSpan">联系客服</span></div>
    </div>
    <div class="message" v-if="isShow">
      <div class="message-div">
        <p>请拨打客服电话:<br>028-85469876</p>
          <span @click="onCancel">取消</span>
          <div class="div" @click="onDial">拨打</div>
      </div>
    </div>
  </div>
</template>

<script>
// 再次开锁
export default {
  name: 'Unlockagain',
  data () {
    return {
      isShow: false
    }
  },
  methods: {
    onSpan () { // 点击拨打客服
      this.isShow = true
    },
    onCancel () { // 取消
      this.isShow = false
    },
    onDial () { // 拨打
      console.log(3)
    },
    onUnlock () { // 开锁
      console.log(1)
    }
  },
  created: () => {
    document.title = '再次开锁'
  }
}
</script>

<style lang='scss' scoped>
.Unlockagain {
  width:100%;
  height:158.4vw;
  background:rgba(255,255,255,1);
  display: flex;
  flex-direction: column;
  align-items: center;
  img {
    width: 16.53vw;
    height: 30.66vw;
    margin-top:10.6vw;
    margin-bottom: 2.6vw;
  }
  .Unlockagain-p {
    font-size:3.733vw;
    font-family:SourceHanSansCN-Regular;
    font-weight:400;
    color:rgba(134,134,134,1);
  }
  .Unlockagain-button {
    width:93vw;
    height:12.23vw;
    background:rgba(10,109,255,1);
    border-radius:0.8vw;
    margin-top:10.6vw;
    font-size:4.5vw;
    font-family:SourceHanSansCN-Normal;
    font-weight:400;
    color:rgba(255,255,255,1);
    text-align: center;
    line-height: 12.23vw;
    margin-bottom: 6.6vw;
  }
}
.Unlockagain-div {
  width:93vw;
  font-size:3.7vw;
  font-family:SourceHanSansCN-Regular;
  font-weight:400;
  color:rgba(134,134,134,1);
  span {
    color:rgba(10,109,255,1);
  }
}
.message {
  background:rgba(0,0,0,0.5);
  border-radius:0.53vw;
  width: 100%;
  height: 100%;
  text-align: center;
  line-height: 10.4vw;
  font-size: 4.26vw;
  font-family: SourceHanSansCN-Regular;
  font-weight: 400;
  position: absolute;
  top: 0vw;
  display: flex;
  justify-content: center;
  .message-div {
   position: relative;
   width: 78.6vw;
   height: 38.1vw;
   margin: auto;
   background:rgba(255,255,255,1);
   border-radius:2.1vw;
   p {
    width: 36.2vw;
    height: 10.9vw;
    margin-left:6.66vw;
    margin-top:6.66vw;
    font-size:4.5vw;
    font-family:SourceHanSansCN-Regular;
    font-weight:400;
    color:rgba(22,22,22,1);
    line-height: 6.4vw;
   }
   span {
     display: inline-block;
     margin-top:9.33vw;
     margin-left:38.5vw;
      font-family:SourceHanSansCN-Regular;
      font-weight:400;
      color:rgba(134,134,134,1);
   }
   .div {
    display: inline-block;
    margin-top:9.33vw;
    margin-left: 9.33vw;
    font-weight:400;
    color:rgba(10,109,255,1);
   }
  }
}
</style>
